import { Card, Descriptions, Button } from 'antd';

export default function SupplierDetail() {
  const supplierInfo = {
    name: 'XX汽车零部件有限公司',
    code: '91370100MA3C4B1234',
    address: '山东省济南市历下区',
    contact: '张经理 13800138000'
  };

  return (
    <Card title="供应商详情" style={{ margin: 24 }}>
      <Descriptions bordered column={1}>
        <Descriptions.Item label="企业名称">{supplierInfo.name}</Descriptions.Item>
        <Descriptions.Item label="统一信用代码">{supplierInfo.code}</Descriptions.Item>
        <Descriptions.Item label="企业地址">{supplierInfo.address}</Descriptions.Item>
        <Descriptions.Item label="联系方式">{supplierInfo.contact}</Descriptions.Item>
      </Descriptions>
      <Button type="primary" style={{ marginTop: 16 }}>编辑信息</Button>
    </Card>
  );
}